package valve_test.DAO;

import java.sql.SQLException;
import java.util.List;

import valve_test.logic.ierarchy;
/**
 * Created with IntelliJ IDEA.
 * User: Shinigami
 * Date: 11.03.14
 * Time: 22:11
 * To change this template use File | Settings | File Templates.
 */
public interface IerarchyDAO {
    public void addIerarchy(ierarchy ierarch) throws SQLException;
    public void updateIerarchy(ierarchy ierarch) throws SQLException;
    public ierarchy getIerarchyById(Long id) throws SQLException;
    public List getAllIerarchies() throws SQLException;
    public List getIerarchiesByParent(Long p_id) throws SQLException;
    public List getIerarchiesByChild(Long c_id) throws SQLException;
    public void deleteIerarchy(ierarchy ierarch) throws SQLException;
}
